<include file="common/header" />
<div class="main-container">
    <div class="container">
        <div class="content">
            <div class="wrap-user-info clearfix">
                <div class="pull-left">
                    <img src="{$user.avatar_middle}" class="user-photo hidden-xs" />
                </div>
                <div class="pull-left user-info">
                    <div class="mb25">
                        <span class="real-name hidden-xs">{$user.user_name}</span>
                        <div class="hidden-xs">
                            <a href="/user/profile.html" class="ui-btn ui-btn-blue ui-btn-user">
                                <i class="ui-icon ui-icon-user ui-icon-user-setting"></i>
                                个人设置
                            </a>
                            <a href="/user/message.html" class="ui-btn ui-btn-blue ui-btn-user">
                                <i class="ui-icon ui-icon-user ui-icon-user-mes"></i>
                                消息中心
                                <i class="ui-icon ui-icon-user ui-icon-user-circular"></i>
                            </a>
                            <a href="/user/express.html" class="ui-btn ui-btn-blue ui-btn-user">
                                <i class="ui-icon ui-icon-user ui-icon-user-shopping"></i>
                                发货设置
                            </a>
                        </div>
                        <div class="visible-xs">
                            <a href="/user/profile.html" class="ui-btn ui-btn-blue ui-btn-user">
                                个人设置
                            </a>
                            <a href="/user/message.html" class="ui-btn ui-btn-blue ui-btn-user">
                                消息中心
                            </a>
                            <a href="/user/express.html" class="ui-btn ui-btn-blue ui-btn-user">
                                发货设置
                            </a>
                        </div>

                    </div>
                    <p class="mb10">加入时间：{$user.create_time|date="Y-m-d",###}</p>
                    <if condition="($user.province neq '' )"><p class="mb10">所在地区：{$user.province} {$user.city}</p></if>
                    <p class="mb10">{$user.intro}</p>
                </div>
            </div>
            <div class="tabs row">
                <div class="col-xs-4">
                    <a href="/user/support.html" class="tabs-btn-user">
                        <i class="ui-icon ui-icon-user ui-icon-user-star"></i>
                        <span class="title">我支持的</span>
                        <span class="count">{$support_total}</span>
                    </a>
                </div>
                <div class="col-xs-4">
                    <a href="/user.html" class="tabs-btn-user">
                        <i class="ui-icon ui-icon-user ui-icon-user-megaphone"></i>
                        <span class="title">我发起的</span>
                        <span class="count">{$post_total}</span>
                    </a>
                </div>
                <div class="col-xs-4">
                    <a href="/user/favorite.html" class="tabs-btn-user active">
                        <i class="ui-icon ui-icon-user ui-icon-user-heart"></i>
                        <span class="title">我喜欢的</span>
                        <span class="count">{$fav_total}</span>
                    </a>
                </div>
            </div>
            <div class="pro-list">
                <div class="table-responsive">
                <table class="table">
                    <thead>
                    <tr>
                        <th class="name">项目名称</th>
                        <th class="chart hidden-xs"></th>
                        <th class="hidden-xs">发布日期</th>
                        <th class="hidden-xs">截止日期</th>
                        <th>目标</th>
                        <th>筹款额度</th>
                        <th>状态</th>
                        <th class="hidden-xs">支持人数</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="vo">
                    <tr>
                        <td class="first row">
                            <a href="/deal/show/?id={$vo.id}" class="hidden-xs"><img style="width:60px;height:60px;" src="{$vo.deal_item_images}" class="pull-left"/></a>
                            <div class="title pull-left col-xs-8 pl10"><a href="/deal/show/?id={$vo.id}">{$vo.name}</a></div>
                        </td>
                        <td class="hidden-xs">
                            <div class="wrap-pie-apr" id="pie{$vo.id}" data-apr="{$vo.percent}%">
                            </div>
                        </td>
                        <td class="hidden-xs"><if condition="(($vo['begin_time'] gt $now) || $vo['begin_time'] eq 0 )">未上线<else />{$vo.begin_time|date="Y-m-d",###}</if></td>
                        <td class="hidden-xs"><if condition="(($vo['begin_time'] gt $now) || $vo['begin_time'] eq 0 )">未上线<else />{$vo.end_time|date="Y-m-d",###}</if></td>
                        <td>{$vo.limit_price}元</td>
                        <td class="money">{$vo.support_amount}元</td>
                        <td><if condition="($vo.is_success eq 1)"><if condition="($vo.end_time lt $now) AND ($vo.end_time neq 0)">众筹成功<else/>众筹中</if><else/><if condition="(($vo['begin_time'] gt $now) || $vo['begin_time'] eq 0 )">未上线</if><if condition="($vo.end_time lt $now) AND ($vo.end_time neq 0)"><if condition="($vo.is_success eq '1')">众筹成功<else />众筹失败</if></if><if condition="(($vo.end_time gt $now AND $vo.end_time neq 0) AND $vo.begin_time lt $now)">众筹中</if></if></td>
                        <td class="hidden-xs">{$vo.support_count}人<i class="glyphicon glyphicon-chevron-right fc-blue"></i></td>
                        <td><a  class="del-like" data-id="{$vo.fav_id}">删除</a></td>
                    </tr>
                    </volist>
                    </tbody>
                </table>
                </div>
            </div>
            <div class="page">
                {$page}
            </div>
        </div>

    </div>
</div>
<include file="common/footer" />